<pre class="docs-method-signature"><code>paper.paperToLocalRect(rect)</code></pre>
<p>Transform the rectangle <code>rect</code> defined in the paper coordinate system to the local coordinate system.
    <pre><code>var paperRect = g.Rect(0, 0, paper.options.width, paper.options.height);
var localRect1 = paper.paperToLocalRect(paperRect);
 // alternative method signature
var localRect2 = paper.paperToLocalRect(0, 0, paper.options.width, paper.options.height);
// Move and resize the element to cover the entire paper viewport.
element.position(localRect1.x , localRect1.y);
element.size(localRect1.width, localRect1.height);
</code></pre>
</p>
